package com.wcy.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

import com.wcy.annotation.pageVo.PageColumn;
import com.wcy.annotation.pageVo.PageName;
import com.wcy.annotation.pageVo.SelectionAnnotation;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
/**
 * <p>
 * 
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-28
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("user_collection")
@PageName(name = "用户收藏")
public class UserCollection {

    @PageColumn(prop="userId", label="用户ID", type="select",selectRef = @SelectionAnnotation(apiUrl = "user/list",mapProp = "userId",mapLabel = "username"))
    private Integer userId;

    @PageColumn(prop="resourceId", label="资源ID",type = "select",clickUrlPrefix = "detail/",selectRef = @SelectionAnnotation(apiUrl = "resource/list",mapProp = "resourceId",mapLabel = "title"))
    private Integer resourceId;

    @PageColumn(prop="collectedAt", label="收藏时间",type = "date-picker")
    private LocalDateTime collectedAt;
}
